package com.yixin.hospital.service;

import cn.hutool.core.lang.tree.Tree;
import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.DrugType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.entity.dto.req.drugType.DrugTypeAddReqDTO;
import com.yixin.hospital.entity.dto.req.drugType.DrugTypeEditReqDTO;

import javax.validation.Valid;
import java.util.List;

/**
* @author Administrator
* @description 针对表【drug_type(药品类别表)】的数据库操作Service
* @createDate 2024-04-03 17:16:38
*/
public interface DrugTypeService extends IService<DrugType> {

    ApiResult<List<Tree<Integer>>> treeList();


    ApiResult add(@Valid DrugTypeAddReqDTO drugTypeAddReqDTO, String userName);

    ApiResult edit(@Valid DrugTypeEditReqDTO drugTypeEditReqDTO, String userName);
}
